package com.tian.service;

import com.tian.common.CommonResult;
import com.tian.dto.ChargePayReqDto;
import com.tian.dto.NotifyResultDto;
import com.tian.dto.OrderUseCouponDto;
import com.tian.dto.PayNotifyTestReqDto;
import com.tian.entity.ChargePayOrder;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * {@code @description:} 支付服务接口
 *
 * @author tianwc 公众号：Java后端技术全栈
 * 在线刷题 1200+java面试题和1000+篇技术文章：<a href="https://woaijava.cc/">博客地址</a>
 * {@code @date:} 2024-10-10 11:26
 * {@code @version:} 1.0
 */
public interface PaymentService {
    /**
     * 预支付充值订单 ----- 充值
     */
    String prepay(ChargePayOrder chargePayOrder,String msg, Boolean isTest);

    /**
     * 支付结果通知 ----- 充值
     */
    ResponseEntity<String> payNotify(HttpServletRequest request, PayNotifyTestReqDto payNotifyTestReqDto) ;

}
